package com.warm.base.design.b_visitor;

import java.util.Random;

/**
 * @Date: 2019/11/27 15:19
 * @Author: LChuang
 * @Description:
 */
public class ConcreteElementB extends Element {
    public ConcreteElementB(String name) {
        super(name);
    }

    @Override
    public void accept(Visitor visitor) {
        visitor.visit(this);
    }

    public int getProduces(){
        return new Random().nextInt(10);
    }
}
